#pragma once

#include <string.h>
#include <unistd.h>
#include <stdio.h>



#define NUM 102
#define TOP 100
#define PRO '*'
#define PON '>'


//函数指针类型
typedef void (*processBar)(int);

//char bar[NUM];
//const char *lable ="/|-|\\|-|";

//控制printf打印的颜色
#define RED "\033[0;32;31m"
#define NONE "\033[m"

extern void processbar(int curr);
extern void initbar();
extern void download(processBar cb);



/*
#define NUM 102
#define TOP 100
#define BODY '='
#define RIGHT '>'


extern void processbar(int rate);
extern void initbar();
*/


